<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org"
	  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta name="description" content="">
	<meta name="author" content="">

	<title>选课系统-批量添加用户</title>

	<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
	<!-- Custom styles for this template -->
	<link th:href="@{/css/dashboard.css}" rel="stylesheet">


</head>

<body>
<div th:replace="~{commons::topbar}"></div>

	<div class="container-fluid">
		<div class="row">
			<div th:replace="~{commons::sidebar(active=${roles})}"></div>

			<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">

				<form th:action="@{/admin/mutiAdd}" method="post" enctype="multipart/form-data">  <!--默认enctype值为application/x-www-form-urlencoded，不能用于文件上传-->
					<input type="hidden" name="roles" th:value="${roles}">
					<div class="form-group">
						<input type="file" name="excelFile" accept=".xls, .xlsx"/></p>
					</div>
					<button type="submit" >上传</button>
					<p style="color: red" th:text="${result}" th:if="${not #strings.isEmpty(result)}"></p>
				</form>
			</main>
		</div>
	</div>



</body>

</html>